package MindMap;

// MODEL

/** @author Lewis Marhin */
public class mindmapModel
{
    int MAX_NODES = 100;
    private node[] nodeList = new node[MAX_NODES];
    
    mindmapModel(String rootString)
    {   
        nodeList[0] = new node(rootString, 100, 100);
        nodeList[1] = new node("This is a bubble!", 30, 30, nodeList[0]);
    }
    
    /** Returns the list of nodes including the root. */
    node[] getNodeList()
    {
        return nodeList;
    }
    
    /** Returns number of nodes including root. */
    public int getNodeCount()
    {
        return node.nodeCount;
    }
    
    /** Returns the root node which is always at nodeList[0]. */
    node getRoot()
    {
        return nodeList[0];
    }
}
